package com.zwps.biz.api.model.dto.auth;

import lombok.Getter;
import lombok.Setter;
import javax.validation.constraints.NotBlank;
import io.swagger.v3.oas.annotations.media.Schema;

@Schema(description = "用户名密码登录")
@Getter
@Setter
public class PasswordLoginAuthDTO {

    @Schema(description = "用户名", defaultValue = "admin")
    @NotBlank(message = "用户名不能为空")
    private String username;

    // 加密明文密码Yes@!#$20230523
    @Schema(description = "密码（AES加密）", defaultValue = "04166a6237b7d99d3ceb7bdb29a80086d11aab2b9e5ed628c1b83455e3bbcf93f85a2dfdecb27dba3e229ac4661f9946f175d23e5badadac54ab9b1133efe6494dc8a5ddb02bcf171e5a8159c252333656537e2132054e2736f64fdb65ca56a27c0e3e9fb659dfa9ca393807b6916eb5")
    @NotBlank(message = "密码不能为空")
    private String password;

}
